echo Content-type: text/plain
echo
echo "CGI/1.2 (POSIX shell, args.sh) report:"
echo
echo $# "args:"
echo $1 $2 $3 $4 $5 $6 $7 $8
echo
echo environment variables:
echo REQUEST_METHOD:    $REQUEST_METHOD
echo SCRIPT_NAME:       $SCRIPT_NAME
echo QUERY_STRING:      $QUERY_STRING
echo PATH_INFO:         $PATH_INFO
echo PATH_TRANSLATED:   $PATH_TRANSLATED
if $REQUEST_METHOD = "POST" then
	echo CONTENT_TYPE:      $CONTENT_TYPE
	echo CONTENT_FILE:      $CONTENT_FILE
	echo CONTENT_LENGTH:    $CONTENT_LENGTH
	echo
	echo ---- begin content ----
	cat 
	echo
	echo ----- end content -----
	echo
fi
echo -- end of report --



